package edu.hut.action;
import java.util.*;
import edu.hut.dao.KcDao;
import edu.hut.dao.imp.KcDaoImp;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class KcAction extends ActionSupport{
	public String execute() throws Exception{
		KcDao kcDao = new KcDaoImp();
		List list = kcDao.getAll();
		Map request = (Map) ActionContext.getContext().get("request");
		request.put("list",list);
		return SUCCESS;
	}
}
